﻿#ifndef POSTCOMMAND_CMDLINECHARTSIDEBARDATAOPERATIONCHANGED_H
#define POSTCOMMAND_CMDLINECHARTSIDEBARDATAOPERATIONCHANGED_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdLineChartSidebarDataOperationChanged : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdLineChartSidebarDataOperationChanged();
        ~CmdLineChartSidebarDataOperationChanged();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setLineChartSidebarDataOperationChanged(int mainWindowId, bool isNormChecked, bool isDBChecked, bool isMathOperationChecked);

    private:
        int m_mainWindowId;
        bool m_isNormChecked;
        bool m_isDBChecked;
        bool m_isMathOperationChecked;
    };
} // namespace PostCommand

#endif
